package com.danke.demo.player

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

/**
 * @author wpq
 * @version 1.0
 */
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        btn_test.setOnClickListener { intent(TestPlayActivity::class.java) }
        btn_list.setOnClickListener { intent(ListPlayActivity::class.java) }
    }

    private fun intent(cls: Class<*>) {
        startActivity(Intent(this, cls))
    }
}